package com.gitee.wsl.compose.ui.table

//import androidx.compose.foundation.HorizontalScrollbar
//import androidx.compose.foundation.LocalScrollbarStyle
import androidx.compose.foundation.ScrollState
//import androidx.compose.foundation.ScrollbarStyle
//import androidx.compose.foundation.VerticalScrollbar
import androidx.compose.foundation.lazy.LazyListState
//import androidx.compose.foundation.rememberScrollbarAdapter
//import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.gitee.wsl.platform.isMobile
import com.gitee.wsl.platform.platform

//@Composable
//private fun scrollBarStyle(): ScrollbarStyle {
//    return LocalScrollbarStyle.current.copy(
//        unhoverColor = MaterialTheme.colorScheme.primaryContainer.copy(alpha = 0.85f),
//        hoverColor = MaterialTheme.colorScheme.primaryContainer.copy(alpha = 1.0f),
//        thickness = 8.dp
//    )
//}

@Composable
fun DataTableVerticalScrollbar(modifier: Modifier = Modifier, state: LazyListState){
//    VerticalScrollbar(
//        modifier = modifier,
//        adapter = rememberScrollbarAdapter(scrollState = state),
//        style = scrollBarStyle()
//    )
}

@Composable
fun DataTableHorizontalScrollbar(modifier: Modifier = Modifier, state: LazyListState){
//    HorizontalScrollbar(
//        modifier = modifier,
//        adapter = rememberScrollbarAdapter(scrollState = state),
//        style = scrollBarStyle()
//    )
}

@Composable
fun DataTableHorizontalScrollbar(modifier: Modifier = Modifier, state: ScrollState){
//    HorizontalScrollbar(
//        modifier = modifier,
//        adapter = rememberScrollbarAdapter(scrollState = state),
//        style = scrollBarStyle()
//    )
}

internal val isMobile: Boolean get() = platform.isMobile()

@Composable
internal fun NoScrollAnimation(content: @Composable () -> Unit){
//    if(platform.isAndroid()){
//        CompositionLocalProvider(LocalOverscrollConfiguration.provides(null)) {
//            content()
//        }
//    }else
        content()

}